﻿var myApp = angular.module('myApp', ['ngRoute']);
myApp.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/', {
        templateUrl: '/Scripts/Views/Homeview.html',
        controller: 'HomeController'
    })
    .when('/Details/:id', {
        templateUrl: '/Scripts/Views/Detailview.html',
        controller: 'DetailController'
        })
    .otherwise({
        redirectTo: '/'
    });
}])